package com.beasts.ant.auth.config.oauth;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * 访问地址拦截设置（见配置文件）
 *
 * @author Locker
 * @date 07/05/2018 2:28 PM
 * @since 1.0
 */
@Configuration
@ConditionalOnExpression("!'${urls}'.isEmpty()")
@ConfigurationProperties(prefix = "ant.page.auth.urls")
@Data
public class AuthUrlsConfig {

    private List<String> anon = new ArrayList<>();

}
